package entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;

/**
 * (User)实体类
 *
 * @author makejava
 * @since 2023-05-24 20:00:27
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Data
public class User implements Serializable {
    private static final long serialVersionUID = 724355964389502067L;

    private Integer id;

    private String name;

    private String password;

    private String phone;

    private Integer role;

    public User(String username, String password,Integer role) {
     this.name = username;
     this.password = password;
     this.role = role;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }
}

